import request from '@/utils/request'

// 查询考场管理列表
export function listExam(query) {
  return request({
    url: '/exam/examination/list',
    method: 'get',
    params: query
  })
}
// 新增考试
export function addExam(data) {
  return request({
    url: '/exam/examination',
    method: 'post',
    data: data
  })
}
//获取详情
export function getExam(id) {
  return request({
    url: '/exam/examination/'+id,
    method: 'get',
  })
}
// 删除考试
export function delExame(id) {
  return request({
    url: '/exam/examination/delete/' + id,
    method: 'post'
  })
}
// 修改考试
export function updateExam(data) {
  return request({
    url: '/exam/examination/update',
    method: 'post',
    data: data
  })
}

//  课程开课单位树 数据
export function getQueryCourseTree() {
  return request({
    url: '/org/course/queryCourseTree',
    method: 'get',
  })
}
